package com.djinfo.work.entity;

import javax.persistence.*;
import java.util.Date;


/**
 * <p>
 * 日志表
 * </p>
 */
@Entity
@Table(name = "tb_dic_log")
public class TbDicLog implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	private String id;
    /**
     * 用户
     */
	private String userName;
    /**
     * 日志
     */
	private String title;
    /**
     * 地址
     */
	private String url;
    /**
     * 参数
     */
	private String params;
    /**
     * 日志时间
     */
	private Date createTime;

	@Id
	@TableGenerator(name = "tb_TABLE_id", // 此处的名字要和下面绿色标注的对应
			table = "tb_generator_seq", // 主键保存到数据库的表名
			pkColumnName = "gen_name", // 表里用来保存主键名字的字段
			valueColumnName = "gen_value", // 表里用来保存主键值的字段
			pkColumnValue = "TbDicLog", // 表里名字字段对应的值
			allocationSize = 1) // 自动增长，设置为1
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "tb_TABLE_id")
	@Column(name = "id", unique = true, nullable = false)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	@Column(name = "username")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	@Column(name = "title")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	@Column(name = "url")
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	@Column(name = "params")
	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}
	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
